#include<gtk-2.0/gtk/gtk.h>
#include <gstreamer-0.10/gst/gst.h>
#include <glib-2.0/glib.h>

#include "include.h"
#include "callbacks.c"
#include "interface.c"
extern GtkWidget *m_player;


int main (int argc, char* argv[])
{
	gtk_set_locale ();
	gtk_init (&argc, &argv);
	gst_init (&argc, &argv);
	m_player = create_mplayer();
	gtk_widget_show (m_player);


	gtk_signal_connect(GTK_OBJECT(m_player), "delete_event",GTK_SIGNAL_FUNC(destroy_app), NULL);
	gtk_signal_connect(GTK_OBJECT(exittool), "clicked", GTK_SIGNAL_FUNC(destroy_app), NULL);
	gtk_signal_connect(GTK_OBJECT(quit), "activate",GTK_SIGNAL_FUNC(destroy_app), NULL);
	gtk_signal_connect(GTK_OBJECT(opentool), "clicked",GTK_SIGNAL_FUNC(file_choose), NULL);
	gtk_signal_connect(GTK_OBJECT(open), "activate",GTK_SIGNAL_FUNC(file_choose), NULL);
	gtk_signal_connect(GTK_OBJECT(filew), "delete_event",GTK_SIGNAL_FUNC(destroy_app), NULL);
	gtk_signal_connect(GTK_OBJECT(stoptool),"clicked",GTK_SIGNAL_FUNC(stop_media),NULL);
	gtk_main ();
	return 0;
}
